/*
 * Copyright (c) 2012-2013 www.iflytek.com. All Rights Reserved.
 * This software for customer relationship management system, developed by Ifly@ZY team.
 * Software code and design for the team, copy rights reserved.
 */

package com.iflytek.testing;

/**
 * <p>
 * Mock 时间.
 * </p>
 *
 * @author poplar.yfyang
 * @version 1.0 2013-02-24 9:58 PM
 * @since JDK 1.5
 */
public class MockSystemEnvironment implements Environmental {
    private long current_time;
    private boolean palyed = false;

    @Override
    public long getTime() {
        return current_time;
    }

    @Override
    public void paly(String message) {
        System.out.println("mock:" + message);
        this.palyed = true;
    }

    public void setCurrent_time(long current_time) {
        this.current_time = current_time;
    }

    public boolean isPalyed() {
        return palyed;
    }


    public void resetPaly() {
        this.palyed = false;

    }
}
